package com.leetcode.string.demo3;

import java.util.Scanner;

/**
 * @Author Zan
 * @Create 2024/6/3 8:58
 * @ClassName: Test
 * @Description : https://kamacoder.com/problempage.php?pid=1064  替换数字
 */
public class Test {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        String next = sc.nextLine();
        String s = newStr(next);
        System.out.println(s);
    }
    public static String newStr(String oldStr) {
        StringBuffer sb = new StringBuffer();
        int i = 0;
        while (i < oldStr.length()) {
            char temp = oldStr.charAt(i++);
            if (temp >= '0' && temp <= '9') {
                sb.append("number");
            } else {
                sb.append(temp);
            }
        }
        return sb.toString();
    }
}
